package com.kaifamiao.www.demo.Do26.Zuoye;

public class Tree {
    int health = 100;
    //浇水
    public void water(){
       this.health = health +20;

    }
    //长虫
    public void parasite(){

        this.health = health - 40;
    }
    //用杀虫剂
    public void insecticide(){

        this.health = health +30;
    }

}
